<?php

class Core_Form_Admincp_Storage_Ssh2 extends Nuo_Form
{
	function init()
	{
		$this -> setTitle('SSH2 Storage System');

		$this -> setDesc('form-desc.SSH2 Storage System');

		$this -> addChild('text', 'host', array(
			'label' => 'Host',
			'desc' => 'form-desc.SSH2 Host'
		));

		$this -> addChild('text', 'port', array(
			'label' => 'Port',
			'desc' => 'form-desc.SSH2 Port'
		));

		$this -> addChild('text', 'timeout', array(
			'label' => 'Connection Timeout',
			'value' => 20,
			'desc' => 'form-desc.SSH2 Connection Timeout'
		));

		$this -> addChild('yesno', 'pasv', array(
			'label' => 'Passive Mode',
			'value' => '1',
			'desc' => 'form-desc.SSH2 Passive Mode',
		));

		$this -> addChild('yesno', 'ssl', array(
			'label' => 'Use SSH2S',
			'desc' => 'form-desc.SSH2 Use SSH2S',
		));

		$this -> addChild('text', 'username', array(
			'label' => 'SSH2 Username',
			'desc' => 'form-desc.SSH2 Username',
		));
		$this -> addChild('text', 'password', array(
			'label' => 'SSH2 Password',
			'desc' => 'form-desc.SSH2 Password',
		));
		$this -> addChild('text', 'basePath', array(
			'label' => 'SSH2 Base Path',
			'desc' => 'form-desc.SSH2 Base Path',
		));

		$this -> addChild('text', 'baseUrl', array(
			'label' => 'SSH2 Base Url',
			'desc' => 'This is the base URL used for generating the file URLs. '
		));

		$this -> addChild('yesno', 'is_storable', array(
			'label' => 'Is Enabled',
			'desc' => 'form-desc.SSH2 Enabled',
		));

		$this -> addChild('yesno', 'is_default', array(
			'label' => 'Is Default',
			'desc' => 'form-desc.SSH2 Default',
		));

		$this -> addChild('group', '_footer');

		$this -> _footer -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');

	}

}
